﻿using BathhouseService.Models.FrameEnumeration;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;

namespace BathhouseService.Models.SqlModels
{
    public class PaymentRecord: PersistPoco
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        public new int ID { get; set; }
        /// <summary>
        /// 订单号
        /// </summary>
        [Display(Name = "订单号")]
        public string OrderId { get; set; }
        /// <summary>
        /// 支付方式
        /// </summary>
        [Display(Name = "支付方式")]
        [Required(ErrorMessage = "支付方式是必填项")]
        public int PayWayId { get; set; }
        /// <summary>
        /// 支付方式
        /// </summary>
        [Display(Name = "支付方式")]
        public PayWay PayWay { get; set; }
        /// <summary>
        /// 使用服务
        /// </summary>
        [Display(Name = "使用服务")]
        [Required(ErrorMessage = "使用服务是必填项")]
        public int ValueAddedServicesId { get; set; }
        /// <summary>
        /// 使用服务
        /// </summary>
        [Display(Name = "使用服务")]
        public ValueAddedServices ValueAddedServices { get; set; }
        /// <summary>
        /// 服务人标识
        /// </summary>
        [Display(Name = "服务师傅")]
        [Required(ErrorMessage = "服务师傅")]
        public Guid ServicePersonId { get; set; }
        /// <summary>
        /// 服务人姓名
        /// </summary>
        [Display(Name = "服务师傅姓名")]
        public string ServicePersonName { get; set; }
        /// <summary>
        /// 客户标识
        /// </summary>
        [Display(Name = "客户")]
        [Required(ErrorMessage = "客户是必填项")]
        public Guid CustomerId { get; set; }
        /// <summary>
        /// 客户姓名
        /// </summary>
        [Display(Name = "客户姓名")]
        public string CustomerName { get; set; }
        /// <summary>
        /// 支付时间
        /// </summary>
        [Display(Name = "支付时间")]
        public DateTime PaymentTime { get; set; }
        /// <summary>
        /// 实际付款金额
        /// </summary>
        [Display(Name = "实际付款金额")]
        [Required(ErrorMessage = "实际付款金额是必填项")]
        public double ActualPayment { get; set; }
        /// <summary>
        /// 结算方式
        /// </summary>
        [Display(Name = "结算方式")]
        public SettlementEnum SettlementEnums { get; set; }




    }
}
